package com.example.demo.LeetCode.arr;

public class FindTheDifference {
    public static void main(String[] args) {
        String s = "11";
        String t = "161";
        char data = findTheDifference(s,t);
        System.out.println(data);
    }
    public static char findTheDifference(String s, String t) {
        char res = 0;
        for(Character c : s.toCharArray()){
            res^= c;
        }
        for (Character c : t.toCharArray()){
            res^= c;
        }
        return res;
    }
}
